﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Shared_AdminMasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Linkbutton_Click(object sender, EventArgs e)
    {
        LinkButton lbt = (LinkButton)sender;
        string s = lbt.ID.Substring(3);
        Response.Redirect("~/1/" + s + ".htm");
    }
    protected void btnLogout_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Login.htm");
    }
    protected void btnChangePassword_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/ChangePassword.htm");
    }
    protected void btnVie_Click(object sender, ImageClickEventArgs e)
    {
        HttpCookie cookie = new HttpCookie("SelLang");
        cookie.Value = "vi";
        Response.SetCookie(cookie);
        cookie.Expires = DateTime.Now.AddHours(24);
        Response.Cookies.Add(cookie);
        Response.Redirect(Request.UrlReferrer.AbsoluteUri);
    }
    protected void btnEng_Click(object sender, ImageClickEventArgs e)
    {
        HttpCookie cookie = new HttpCookie("SelLang");
        cookie.Value = "en";
        Response.SetCookie(cookie);
        cookie.Expires = DateTime.Now.AddHours(24);
        Response.Cookies.Add(cookie);
        Response.Redirect(Request.UrlReferrer.AbsoluteUri);
    }
}
